package com.example.shushiyunsst.fragment.main.home.child.new_sale.chlid.category.recycler.modler;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class GridContentWrapper implements ClassifyContentEntity {

    private List<GridContent> ls = new ArrayList<>();

    @Override
    public int getItemType() {
        return ClassifyContentEntityKt.GRID_CONTENT;
    }

    public void addData(Collection<GridContent> newLs) {
        ls.clear();
        ls.addAll(newLs);
    }

    public List<GridContent> getData() {
        return ls;
    }

    @Override
    public int getSpanSize() {
        return 1;
    }
}
